package com.tcfvic.server.tools;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;

public class MapperHelper {
	
	private static MapperHelper instance = new MapperHelper();
	private Mapper mapper = new DozerBeanMapper();
	
	public static MapperHelper getInstance() {
		return instance;
	}
	
	public <T>T map(Object sourceObject, Class <T> destinationObject) {
		return mapper.map(sourceObject, destinationObject);
	}

}
